<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>巡检设备</title>
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/plandevicetaskdetail.css" />
    <link rel="stylesheet" type="text/css" href="css/detailstyle.css" />
    <style>
        textarea{
            margin-left: 16px;
            margin-right: 16px;
        }
        textarea::placeholder{
            padding-left: 2px;
        }
        .noinfo{
            color: #ddd;
            padding-top: 10%;
        }
        .mb30{
            margin-bottom: 30px !important;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div class="boxarea detail">
            <div class="aui_formitem">
                <div class="aui_formtitle">
                    设备名称
                </div>
                <div class="aui_formcontent" style="line-height: 0.8rem;">
                    {{form.deviceName}}
                </div>
            </div>
            <div class="aui_formitem">
                <div class="aui_formtitle">
                    设备编码
                </div>
                <div class="aui_formcontent">
                    {{form.deviceNumber}}
                </div>
            </div>
            <div class="aui_formitem">
                <div class="aui_formtitle">
                    规格型号
                </div>
                <div class="aui_formcontent">
                    {{form.modelNumber?'form.modelNumber':'--'}}
                </div>
            </div>
            <div class="aui_formitem">
                <div class="aui_formtitle">
                    存放位置
                </div>
                <div class="aui_formcontent">
                    {{form.location}}
                </div>
            </div>
            <!-- <div class="aui_formitem">
                <div class="aui_formtitle">
                    项目名称
                </div>
                <div class="aui_formcontent">
                    {{form.ProjectName}}
                </div>
            </div> -->
            <div class="aui_formitem">
                <div class="aui_formtitle">
                    时间
                </div>
                <div class="aui_formcontent">
                    {{form.startTime}}
                </div>
            </div>
            <div class="aui_formitem">
                <div class="aui_formtitle">
                    负责人
                </div>
                <div class="aui_formcontent">
                    {{form.userName}}
                </div>
            </div>
        </div>
        <div class="posibox">
            <!-- <div class="posiicon">
                <i class="icon iconfont icon-dizhi"></i>
            </div> -->
            <div class="posicontent">地址：{{finishLocation}}</div>
            <!-- <div v-if="form.TaskStatus!=3" class="posibtn" v-on:click="StartBmap()">
                <i class="icon iconfont icon-shuaxin2-copy-copy"></i>
            </div> -->
        </div>
        <div class="boxarea detail equipment_list">
            <div class="equipment_title">巡检标准</div>
            <div class="noinfo noinfo-mt" id="noorder" v-if="standardlist.length==0">
                该设备没有巡检标准哦
            </div>
            <!-- loop -->
            <div v-if="standardlist.length>0" v-for="item in standardlist" class="equipment_list_box">
                <div class="equipment_list_box_term">{{item.label}}</div>
                <div class="equipment_list_box_term_input">
                    <div>
                        <label v-if="form.status==3" class="label_radio">
                            <input class="aui-radio" type="radio" disabled="disabled" v-bind:name="item.id+'normal'" v-bind:checked="item.status==1" >
                            正常
                        </label>
                        <label v-if="form.status!=3" class="label_radio" v-on:click="select_active(item,1)">
                          <input class="aui-radio" type="radio" v-bind:name="item.id+'normal'" v-bind:checked="item.status==1">
                          正常
                        </label>
                        <label v-if="form.status==3" class="label_radio">
                            <input class="aui-radio" type="radio" disabled="disabled" v-bind:name="item.id+'normal'" v-bind:checked="item.status==2">
                            异常
                          </label>
                        <label v-if="form.status!=3" class="label_radio" v-on:click="select_active(item,2)">
                          <input class="aui-radio" type="radio" v-bind:name="item.id+'normal'" v-bind:checked="item.status==2">
                          异常
                        </label>
                    </div>
                </div>
            </div>
            <!-- loop -->
        </div>
        <div class="boxarea detail equipment_result mb30">
            <div class="equipment_result_title">
                <div class="equipment_title">巡检结果</div>
                <div class="equipment_result_title_input">
                    <div>
                        <label v-if="form.status==3" class="label_radio">
                            <input class="aui-radio" type="radio" disabled="disabled" name="allnormal" v-bind:checked="form.finishStatus==1">
                            正常
                        </label>
                        <label v-if="form.status!=3" class="label_radio" v-on:click="select_all_active(1)">
                          <input class="aui-radio" type="radio" v-bind:disabled="standardStatus==2" name="allnormal" v-bind:checked="form.finishStatus==1">
                          正常
                        </label>
                        <label v-if="form.status==3" class="label_radio">
                            <input class="aui-radio" type="radio" disabled="" name="allnormal" v-bind:checked="form.finishStatus==2">
                            异常
                          </label>
                        <label v-if="form.status!=3" class="label_radio" v-on:click="select_all_active(2)">
                          <input class="aui-radio" type="radio" v-bind:disabled="standardStatus==2" name="allnormal" v-bind:checked="form.finishStatus==2">
                          异常
                        </label>
                    </div>
                </div>
                <div class="cl"></div>
            </div>
            <div class="equipment_result_edit">
                <div class="aui_formtitle contentdec">情况说明</div>
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-input">
                        <textarea v-if="form.status!=3" placeholder="请填写详细的情况说明(选填信息)" v-model="form.remark" style="width:90%; margin:auto;height: 6rem;"></textarea>
                        <span v-else style="padding-left: 18px; padding-right: 18px;">
                          {{form.remark=='null'?'暂无说明':form.remark}}
                        </span>
                    </div>
                </div>
            </div>
            <div class="imglist_box">
                <div class="imglist_item" v-for="(item,index) in imglist">
                    <img v-on:click="do_viewimages(index)" class="imgitem ml4" v-bind:src="item.url" />
                    <img v-if="form.status!=3" v-on:click="remove_img(item.index)" class="onmouse_close" src="../image/close_mouseover.svg" />
                </div>
                <div v-if="form.status!=3&&imglist.length<4" class="imglist_item ml4">
                    <div class="img_plusbox">
                        <img v-on:click="choose_picture()" src="../image/photo_image.svg"/>
                    </div>
                    最多支持{{maxuploadcount}}张
                </div>
            </div>
            <div class="cl"></div>
            <!-- <div class="hide_height"></div> -->
        </div>
        <div v-if="form.status!=3" class="bottom">
            <div class="aui_bottombtn" v-on:click="do_save()">完成巡检</div>
        </div>
    </div>
</body>
<script type="text/javascript " src="../script/api.js "></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-tab.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="../script/aui-popup.js"></script>
<script type="text/javascript " src="js/equipment_details.js"></script>

</html>
